<div class="head">
    <div class="head-left">
        <a href="<?php echo $this->baseurl("/");?>">
            <img src="<?php echo $this->skinurl("/images/logo.gif");?>" alt="appRain Content Management Framework" />
        </a>
    </div>
    <div class="head-right">
		<ul>
			<li><a href="<?php echo $this->baseurl("/helpdesk");?>" <?php echo $this->is_selected($selected,'ticket');?>>HelpDesk</a></li>
			<li><a href="<?php echo $this->baseurl("/extensions");?>" <?php echo $this->is_selected($selected,'plugins');?>>Extensions</a></li>
			<li><a href="<?php echo $this->baseurl("/videos");?>" <?php echo $this->is_selected($selected,'docs');?> >Videos</a></li>
			<li><a href="<?php echo $this->baseurl("/manual");?>" <?php echo $this->is_selected($selected,'manual');?>>Manual</a></li>
			<li><a href="<?php echo $this->baseurl("/demo");?>" <?php echo $this->is_selected($selected,'demo'); ?>>Demo</a></li>
			<li><a href="<?php echo $this->baseurl("/download");?>" <?php echo $this->is_selected($selected,'download');?> >Download</a></li>
			<li><a href="<?php echo $this->baseurl("/");?>" <?php echo $this->is_selected($selected,'home');?>>Home</a></li>
		</ul>
    </div>
</div>
<div class="clearboth"></div>
<?php if( $selected == 'home'): ?>
<div class="banner">
    <div class="left">
        &nbsp;
    </div>
    <div class="download">
        <a href="<?php echo $this->baseurl("/download");?>">
            <img src="<?php echo $this->skinurl("/images/download_latest_version.gif");?>" alt="appRain Content Management Framework Download" />
        </a>
    </div>
</div>
<?php else: ?>
<div class="top-heading">
    <h1><?php echo isset($section_title) ? $section_title : ""; ?></h1>
	<div class="t-search">
		<form method="post" action="<?php  echo $this->baseurl("/search");?>">
		<input type="text" name="ss" class="src-box" value="<?php echo isset($srcstr) ? $srcstr : '';?>" />
		<input type="submit" class="src-btn" value="Search" />
		</form>
	</div>
    <br class="clearboth" />
</div>
<?php endif; ?>
<div class="clearboth"></div>